import dayjs from "dayjs";

Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    isMember: {
      type: Boolean,
      value: false
    },
    splashScreen: {
      type: Object,
      value: null
    },
    businessLogo: {
      type: String,
      value: ""
    },
    businessName: {
      type: String,
      value: ""
    },
  },
  data: {
    realSrc: '',
    showDate: ''
  },
  observers: {},
  lifetimes: {
    attached: function () {
      let str = "星期" + "日一二三四五六".charAt(new Date().getDay());
      let showDate = dayjs(new Date()).format("YYYY年MM月DD日，") + str;
      this.setData({showDate: showDate})
    },
    detached: function () {

    }
  },
  pageLifetimes: {
    show: function () {

    },
  },
  methods: {
    parseIcons(icons) {

    }
  }
})
